package tmp.arno;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class SumArnoCount {
	public static void main(String[] args) throws SQLException {
		Connection con=DAO.DbcpConnection.getConnection();
		Statement st=con.createStatement();
		ResultSet rs=st.executeQuery("select match_shopin from all_detail_pre");
		int count=0;
		while (rs.next()) {
			int k=rs.getInt(1);
			count+=k;
		}
		System.out.println(count);
	}
}
